package com.aerozhonghuan.logisticsmall.modules.common.entity;

import com.google.gson.Gson;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class GoodsObject implements Serializable {
    private static final long serialVersionUID = 1L;
    private int pvsid;
    private int pid;
    private int sid;
    private ArrayList<Integer> cids;
    private int aliasCid;
    private String baseName;
    private int weight;
    private String postfixName;
    private int price;
    private String unit;
    private String spec;
    private String brand;
    private String smallCategory;
    private String description;
    private String extName;
    private String extDescription;
    private int quantityAvailable;
    private List<ProductImg> images;
    private int min;
    private int max;
    private String title; //返回三个name   getBaseName() + " " + getPostfixName() + " " + getExtName();
    private int triangle;
    private int oldPrice;

    private int isCheck;//是否添加到购物车
    private int intoGouwucheSize;//购物车表中所用，存购买数量
    private int pNotEnough; //商品异常状态
    private String productExceptionInfo = "";
    private int discountPrice;
    private int productType;//0 普通商品    1 跑腿商品    2快递商品    3租赁商品   4快递代发
    private String productLeaveMsg;
    //快递商品
    private String number;
    private String getTime;
    /**
     * 商品来源
     * sourceId 值
     * 1 老版本商品 2 首页 3 搜索页 4 超市 5 商品详情 6 三列商品页面 7 单列商品页面 8 我常买 9 扫一扫 10 Web页面
     */
    private int sourceId;

    public int getpNotEnough() {
        return pNotEnough;
    }

    public void setpNotEnough(int pNotEnough) {
        this.pNotEnough = pNotEnough;
    }

    public int getIntoGouwucheSize() {
        return intoGouwucheSize;
    }

    public void setIntoGouwucheSize(int intoGouwucheSize) {
        this.intoGouwucheSize = intoGouwucheSize;
    }

    public int getIsCheck() {
        return isCheck;
    }

    public void setIsCheck(int isCheck) {
        this.isCheck = isCheck;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public int getPvsid() {
        return pvsid;
    }

    public void setPvsid(int pvsid) {
        this.pvsid = pvsid;
    }

    public int getPid() {
        return pid;
    }

    public void setPid(int pid) {
        this.pid = pid;
    }

    public int getSid() {
        return sid;
    }

    public void setSid(int sid) {
        this.sid = sid;
    }

    public String getBaseName() {
        return baseName;
    }

    public void setBaseName(String baseName) {
        this.baseName = baseName;
    }

    public int getWeight() {
        return weight;
    }

    public void setWeight(int weight) {
        this.weight = weight;
    }

    public String getPostfixName() {
        return postfixName;
    }

    public void setPostfixName(String postfixName) {
        this.postfixName = postfixName;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getSpec() {
        return spec;
    }

    public void setSpec(String spec) {
        this.spec = spec;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getSmallCategory() {
        return smallCategory;
    }

    public void setSmallCategory(String smallCategory) {
        this.smallCategory = smallCategory;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getExtName() {
        return extName;
    }

    public void setExtName(String extName) {
        this.extName = extName;
    }

    public String getExtDescription() {
        return extDescription;
    }

    public void setExtDescription(String extDescription) {
        this.extDescription = extDescription;
    }

    public int getQuantityAvailable() {
        return 10000;//本期不做库存
    }

    public void setQuantityAvailable(int quantityAvailable) {
        this.quantityAvailable = quantityAvailable;
    }

    public List<ProductImg> getpImageList() {
        return images;
    }

    public void setpImageList(List<ProductImg> pImageList) {
        this.images = pImageList;
    }

    public int getMin() {
        return min;
    }

    public void setMin(int min) {
        this.min = min;
    }

    public int getMax() {
        return max;
    }

    public void setMax(int max) {
        this.max = max;
    }

    public String getProductExceptionInfo() {
        return productExceptionInfo;
    }

    public void setProductExceptionInfo(String productExceptionInfo) {
        this.productExceptionInfo = productExceptionInfo;
    }

    public int getDiscountPrice() {
        return discountPrice;
    }

    public void setDiscountPrice(int discountPrice) {
        this.discountPrice = discountPrice;
    }

    public int getTriangle() {
        return triangle;
    }

    public void setTriangle(int triangle) {
        this.triangle = triangle;
    }

    public int getOldPrice() {
        return oldPrice;
    }

    public void setOldPrice(int oldPrice) {
        this.oldPrice = oldPrice;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getGetTime() {
        return getTime;
    }

    public void setGetTime(String getTime) {
        this.getTime = getTime;
    }

    public int getProductType() {
        return productType;
    }

    public void setProductType(int productType) {
        this.productType = productType;
    }

    public String getProductLeaveMsg() {
        return productLeaveMsg;
    }

    public void setProductLeaveMsg(String productLeaveMsg) {
        this.productLeaveMsg = productLeaveMsg;
    }

    public ArrayList<Integer> getCids() {
        return cids;
    }

    public void setCids(ArrayList<Integer> cids) {
        this.cids = cids;
    }

    public int getAliasCid() {
        return aliasCid;
    }

    public void setAliasCid(int aliasCid) {
        this.aliasCid = aliasCid;
    }

    public int getSourceId() {
        return sourceId;
    }

    public void setSourceId(int sourceId) {
        this.sourceId = sourceId;
    }

    @Override
    public String toString() {
        return new Gson().toJson(this);
    }
}
